package com.demo.auth.dao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.demo.auth.dao.domain.AuthCodeUser;
import com.demo.auth.dao.service.AuthCodeUserService;
import com.demo.auth.dao.mapper.AuthCodeUserMapper;
import org.springframework.stereotype.Service;

/**
* @author ps
* @description 针对表【auth_code_user(授权用户)】的数据库操作Service实现
* @createDate 2022-10-09 13:41:42
*/
@Service
public class AuthCodeUserServiceImpl extends ServiceImpl<AuthCodeUserMapper, AuthCodeUser>
    implements AuthCodeUserService{

    @Override
    public AuthCodeUser queryByUserName(String userName) {
        return super.lambdaQuery().eq(AuthCodeUser::getUserName, userName).one();
    }
}




